package com.ytktt.study.week8.task6.shardingsphere.atomikosxa.mapper.item;

import com.ytktt.study.week8.task6.shardingsphere.atomikosxa.entity.item.ItemEntity;
import org.apache.ibatis.annotations.Param;

public interface ItemMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(ItemEntity record);

    int insertSelective(ItemEntity record);

    ItemEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ItemEntity record);

    int updateByPrimaryKey(ItemEntity record);

    int updateSales(@Param("id") int itemId, @Param("amount") int amount);
}